package com.rahms.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rahms.pojo.entity.HealthData;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 健康数据服务接口
 */
public interface HealthDataService extends IService<HealthData> {
    
    // 根据老人ID和数据类型获取健康数据
    List<HealthData> getHealthDataByElderlyIdAndType(Long elderlyId, String dataType);
    
    // 获取指定日期范围内的健康数据
    List<HealthData> getHealthDataByDateRange(Long elderlyId, String dataType, LocalDateTime startDate, LocalDateTime endDate);
    
    // 获取健康数据统计信息
    Map<String, Object> getHealthDataStatistics(Long elderlyId, String dataType, LocalDateTime startDate, LocalDateTime endDate);
}